package org.jsola.hr.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.jsola.core.Page;
import org.jsola.core.Result;
import org.jsola.hr.dto.CrmCustomerImportDetailsAddDTO;
import org.jsola.hr.dto.CrmCustomerImportDetailsUpdateDTO;
import org.jsola.hr.query.CrmCustomerImportDetailsQuery;
import org.jsola.hr.vo.CrmCustomerImportDetailsListVO;
import org.jsola.hr.vo.CrmCustomerImportDetailsVO;
import org.jsola.hr.vo.CrmCustomerImportErrorDataVO;

import java.util.List;

/**
 * 导入客户记录详情表
 *
 * @author zhr
 */
@Api(tags = "hr-导入客户记录详情表")
public interface ICrmCustomerImportDetailsControllerAPI {

    /**
     * 获得错误数据
     * @param crmCustomerImportDetailsQuery 导入客户记录详情表查询参数
     * @return page
     */
    @ApiOperation(value="获得错误数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "crmCustomerImportDetailsQuery", dataType = "CrmCustomerImportDetailsQuery", value = "导入客户记录详情表查询参数", paramType = "query")
    })
    Result<Page<CrmCustomerImportErrorDataVO>> getErrorData(CrmCustomerImportDetailsQuery crmCustomerImportDetailsQuery);


    /**
     * 新增导入客户记录详情表
     * @param crmCustomerImportDetailsAddDTO 导入客户记录详情表新增实体
     * @return 导入客户记录详情表展示对象
     */
    @ApiOperation(value = "新增导入客户记录详情表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "crmCustomerImportDetailsAddDTO", dataType = "CrmCustomerImportDetailsAddDTO", value = "新增导入客户记录详情表", paramType = "body")
    })
    Result<CrmCustomerImportDetailsVO> save(CrmCustomerImportDetailsAddDTO crmCustomerImportDetailsAddDTO);


    /**
     * 修改导入客户记录详情表
     * @param crmCustomerImportDetailsUpdateDTO 导入客户记录详情表
     * @return 更新数量
     */
    @ApiOperation(value = "修改导入客户记录详情表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "crmCustomerImportDetailsUpdateDTO", dataType = "CrmCustomerImportDetailsUpdateDTO", value = "修改导入客户记录详情表", paramType = "body")
    })
    Result<Integer> update(CrmCustomerImportDetailsUpdateDTO crmCustomerImportDetailsUpdateDTO);




    /**
     * 删除单个导入客户记录详情表，彻底删除
     * @param crmCustomerImportDetailsId 导入客户记录详情表id
     * @return 删除数量
     */
    @ApiOperation(value="删除单个导入客户记录详情表，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "crmCustomerImportDetailsId", dataType = "String", value = "导入客户记录详情表id", paramType = "path")
    })
    Result<Integer> delete(String crmCustomerImportDetailsId);


    /**
     * 批量删除导入客户记录详情表，彻底删除
     * @param crmCustomerImportDetailsIds 导入客户记录详情表id集合
     * @return 删除数量
     */
    @ApiOperation(value = "批量删除导入客户记录详情表，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "crmCustomerImportDetailsIds", dataType = "String[]", value = "导入客户记录详情表id数组", paramType = "body" ,allowMultiple = true)
    })
    Result<Integer> deleteBatch(String[] crmCustomerImportDetailsIds);


    /**
     * 根据导入客户记录详情表id查询导入客户记录详情表详情
     * @param crmCustomerImportDetailsId 导入客户记录详情表id
     * @return 导入客户记录详情表详情
     */
    @ApiOperation(value="根据导入客户记录详情表id查询导入客户记录详情表详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "crmCustomerImportDetailsId", dataType = "String", value = "导入客户记录详情表id", paramType = "path")
    })
    Result<CrmCustomerImportDetailsVO> findById(String crmCustomerImportDetailsId);


    /**
     * 查询导入客户记录详情表
     * @param crmCustomerImportDetailsQuery 导入客户记录详情表查询参数
     * @return page
     */
    @ApiOperation(value="查询导入客户记录详情表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "crmCustomerImportDetailsQuery", dataType = "CrmCustomerImportDetailsQuery", value = "导入客户记录详情表查询参数", paramType = "query")
    })
    Result<List<CrmCustomerImportDetailsListVO>> listAll(CrmCustomerImportDetailsQuery crmCustomerImportDetailsQuery);


     /**
     * 分页查询导入客户记录详情表
     * @param crmCustomerImportDetailsQuery 导入客户记录详情表查询参数
     * @return page
     */
    @ApiOperation(value="分页查询导入客户记录详情表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "crmCustomerImportDetailsQuery", dataType = "CrmCustomerImportDetailsQuery", value = "导入客户记录详情表查询参数", paramType = "query")
    })
    Result<Page<CrmCustomerImportDetailsListVO>> page(CrmCustomerImportDetailsQuery crmCustomerImportDetailsQuery);


}

